/**
 * 
 */
package com.itinsys.enma.dao;

import javax.sql.DataSource;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.apache.commons.dbcp.BasicDataSource;


/**
 * @author pferraz
 *
 */
public class DBTemplate {
	public static HibernateTemplate connTemplate;
	public static DataSource oracleDataSource;
	public static BasicDataSource mysqlDataSource;

	/**
	 * 
	 */
	public DBTemplate() {
	}
		
	/**
	 * @return the connTemplate
	 */
	public static HibernateTemplate getConnTemplate() {
		return connTemplate;
	}

	/**
	 * @param connTemplate the connTemplate to set
	 */
	public void setConnTemplate(HibernateTemplate cT) {
		connTemplate = cT;
	}
	
	public static DataSource getOracleDataSource() {
		return oracleDataSource;
	}

	public void setOracleDataSource(DataSource oracleDSource) {
		oracleDataSource = oracleDSource;
	}

	/**
	 * @return the mysqlDataSource
	 */
	public static BasicDataSource getMysqlDataSource() {
		return mysqlDataSource;
	}

	/**
	 * @param mysqlDataSource the mysqlDataSource to set
	 */
	public void setMysqlDataSource(BasicDataSource mysqlDSource) {
		mysqlDataSource = mysqlDSource;
	}
	
	
}
